<template>
  <Swiper class="swp" v-if="topImages.length">
    <SwiperItem v-for="item in topImages" :key="item"
      ><img :src="item"
    /></SwiperItem>
  </Swiper>
</template>

<script>
import Swiper from '../../../components/swiper/Swiper.vue'
import SwiperItem from '../../../components/swiper/SwiperItem.vue'
export default {
  props: {
    topImages: {
      type: Array,
      default() {
        return []
      }
    }
  },
  components: {
    Swiper,
    SwiperItem
  }
}
</script>

<style scoped>
.swp {
  height: 300px;
  overflow: hidden;
}
</style>
